<?php
//use common\Tools;
//use yii\web\Response;
//use yii\base\Event;

$config = [
    "components" => [
        "user" => [
            "class" => 'api\rewrites\User',
            "identityClass" => 'api\models\db\ApiUsers',
        ],
    ],
    'modules' => [
        'guest' => 'api\modules\guest\GuestModule',
        'user' => 'api\modules\user\UserModule',
    ],
    'as token check' => [
        'class' => 'api\behaviors\TokenCheck',
        'except' => [
            'gii/*',
            'debug/*',
            'route/*',
            'guest/*',
        ],
    ],
    'params' => [],
];
return $config;
